package com.tek.ding.faceding.presenter.camera;

import com.tek.ding.faceding.bean.BaseBean;
import com.tek.ding.faceding.bean.Members;
import com.tek.ding.faceding.network.HttpClient;

import io.reactivex.rxjava3.core.Observable;

public class CameraModel implements CameraContract.ICameraModel {

    @Override
    public Observable<BaseBean<String>> addFaceEntity2(String storeUid, String memberUid, String photoUrl) {
        return HttpClient.Builder.getApiService().addFaceEntity2(storeUid, memberUid, photoUrl);
    }

    @Override
    public Observable<BaseBean<String>> toShopFace2(String storeUid, String faceImg) {
        return HttpClient.Builder.getApiService().toShopFace2(storeUid, faceImg);
    }

    @Override
    public Observable<BaseBean<String>> leaveShopFace2(String storeUid, String faceImg) {
        return HttpClient.Builder.getApiService().leaveShopFace2(storeUid, faceImg);
    }

    @Override
    public Observable<BaseBean<Members>> getMemberByFaceImg2(String storeUid, String faceImg) {
        return HttpClient.Builder.getApiService().getMemberByFaceImg2(storeUid, faceImg);
    }
}
